import { createApi } from 'utils/requset'
import type { loginType } from './contents/LoginType'

/* 获取验证码 */
export const code = () => createApi('/captchaImage', 'GET')
/* 登录 */
export const login = (data: loginType) => createApi('/login', 'POST', data)
